<?php 

	echo link_to(image_tag('/uploads/users/gallery/thumbnail/'.$gallery->getPhotoPath()),'/uploads/users/gallery/'.$gallery->getPhotoPath(),array('target'=>'_blank'));

?>